public class PausableContinuousTimeline extends ContinuousTimeline
Timeline.TypestartTimehasDeadline, paused| Constructor and Description |
|---|
PausableContinuousTimeline(int totalSecs) |
| Modifier and Type | Method and Description |
|---|---|
double |
getElapsedMilliSeconds()
Gets the elapsed time in seconds.
|
double |
getElapsedSeconds()
Gets the elapsed time in seconds.
|
static void |
main(java.lang.String[] args) |
void |
pause()
Method used to pause the timeline.
|
void |
resume()
Method used to resume the timeline.
|
getCurrentTime, getTime, getTotalMiliseconds, getTotalSeconds, getTotalTime, printElapsedSeconds, printTimegetType, isDeadlineReached, isPausedpublic double getElapsedSeconds()
ContinuousTimeline.getTime() for a more generic version.getElapsedSeconds in class ContinuousTimelinepublic double getElapsedMilliSeconds()
ContinuousTimeline.getTime() for a more generic version.getElapsedMilliSeconds in class ContinuousTimelinepublic static void main(java.lang.String[] args)
public void pause()
Timeline